<h1><?php echo __("Orders List") ?></h1>

<table>
  <thead>
    <tr>
      <th><?php echo __("Orders") ?></th>
      <th><?php echo __("Customers") ?></th>
      <th><?php echo __("Customers name") ?></th>
      <th><?php echo __("Customers company") ?></th>
      <th><?php echo __("Customers street address") ?></th>
      <th><?php echo __("Customers suburb") ?></th>
      <th><?php echo __("Customers city") ?></th>
      <th><?php echo __("Customers postcode") ?></th>
      <th><?php echo __("Customers state") ?></th>
      <th><?php echo __("Customers country") ?></th>
      <th><?php echo __("Customers telephone") ?></th>
      <th><?php echo __("Customers email address") ?></th>
      <th><?php echo __("Customers address format") ?></th>
      <th><?php echo __("Delivery name") ?></th>
      <th><?php echo __("Delivery company") ?></th>
      <th><?php echo __("Delivery street address") ?></th>
      <th><?php echo __("Delivery suburb") ?></th>
      <th><?php echo __("Delivery city") ?></th>
      <th><?php echo __("Delivery postcode") ?></th>
      <th><?php echo __("Delivery state") ?></th>
      <th><?php echo __("Delivery country") ?></th>
      <th><?php echo __("Delivery address format") ?></th>
      <th><?php echo __("Billing name") ?></th>
      <th><?php echo __("Billing company") ?></th>
      <th><?php echo __("Billing street address") ?></th>
      <th><?php echo __("Billing suburb") ?></th>
      <th><?php echo __("Billing city") ?></th>
      <th><?php echo __("Billing postcode") ?></th>
      <th><?php echo __("Billing state") ?></th>
      <th><?php echo __("Billing country") ?></th>
      <th><?php echo __("Billing address format") ?></th>
      <th><?php echo __("Payment method") ?></th>
      <th><?php echo __("Cc type") ?></th>
      <th><?php echo __("Cc owner") ?></th>
      <th><?php echo __("Cc number") ?></th>
      <th><?php echo __("Cc expires") ?></th>
      <th><?php echo __("Last modified") ?></th>
      <th><?php echo __("Date purchased") ?></th>
      <th><?php echo __("Orders status") ?></th>
      <th><?php echo __("Orders date finished") ?></th>
      <th><?php echo __("Currency") ?></th>
      <th><?php echo __("Currency value") ?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($ordersList as $orders): ?>
    <tr>
      <td><a href="<?php echo url_for('orders/edit?orders_id='.$orders->getOrdersId()) ?>"><?php echo $orders->getOrdersId() ?></a></td>
      <td><?php echo $orders->getCustomersId() ?></td>
      <td><?php echo $orders->getCustomersName() ?></td>
      <td><?php echo $orders->getCustomersCompany() ?></td>
      <td><?php echo $orders->getCustomersStreetAddress() ?></td>
      <td><?php echo $orders->getCustomersSuburb() ?></td>
      <td><?php echo $orders->getCustomersCity() ?></td>
      <td><?php echo $orders->getCustomersPostcode() ?></td>
      <td><?php echo $orders->getCustomersState() ?></td>
      <td><?php echo $orders->getCustomersCountry() ?></td>
      <td><?php echo $orders->getCustomersTelephone() ?></td>
      <td><?php echo $orders->getCustomersEmailAddress() ?></td>
      <td><?php echo $orders->getCustomersAddressFormatId() ?></td>
      <td><?php echo $orders->getDeliveryName() ?></td>
      <td><?php echo $orders->getDeliveryCompany() ?></td>
      <td><?php echo $orders->getDeliveryStreetAddress() ?></td>
      <td><?php echo $orders->getDeliverySuburb() ?></td>
      <td><?php echo $orders->getDeliveryCity() ?></td>
      <td><?php echo $orders->getDeliveryPostcode() ?></td>
      <td><?php echo $orders->getDeliveryState() ?></td>
      <td><?php echo $orders->getDeliveryCountry() ?></td>
      <td><?php echo $orders->getDeliveryAddressFormatId() ?></td>
      <td><?php echo $orders->getBillingName() ?></td>
      <td><?php echo $orders->getBillingCompany() ?></td>
      <td><?php echo $orders->getBillingStreetAddress() ?></td>
      <td><?php echo $orders->getBillingSuburb() ?></td>
      <td><?php echo $orders->getBillingCity() ?></td>
      <td><?php echo $orders->getBillingPostcode() ?></td>
      <td><?php echo $orders->getBillingState() ?></td>
      <td><?php echo $orders->getBillingCountry() ?></td>
      <td><?php echo $orders->getBillingAddressFormatId() ?></td>
      <td><?php echo $orders->getPaymentMethod() ?></td>
      <td><?php echo $orders->getCcType() ?></td>
      <td><?php echo $orders->getCcOwner() ?></td>
      <td><?php echo $orders->getCcNumber() ?></td>
      <td><?php echo $orders->getCcExpires() ?></td>
      <td><?php echo $orders->getLastModified() ?></td>
      <td><?php echo $orders->getDatePurchased() ?></td>
      <td><?php echo $orders->getOrdersStatus() ?></td>
      <td><?php echo $orders->getOrdersDateFinished() ?></td>
      <td><?php echo $orders->getCurrency() ?></td>
      <td><?php echo $orders->getCurrencyValue() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<a href="<?php echo url_for('orders/create') ?>"><?php echo __("Create") ?></a>
